<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户信息的修改</title>
</head>
<body>
    <center>
    <form action="{% url 'user_update' %}" method="POST">
        {% csrf_token %}
        <input type="hidden" name="uid" value="{{ uinfo.id }}">
        用户名: <input type="text" name="username" value="{{ uinfo.username }}"><br>
        体重: <input type="text" name="weight" value="{{ uinfo.weight }}"><br>
        身高: <input type="text" name="height" value="{{ uinfo.height }}"><br>
        年龄: <input type="number" name="age" value="{{ uinfo.age }}"><br>
        性别: <input type="radio" name="sex" value="0" {% if uinfo.sex == '0' %} checked {% endif %}>男
        <input type="radio" name="sex" value="1" {% if uinfo.sex == '1' %} checked {% endif %}>女
        <br>
        <button>确认修改</button>
    </form>
    </center>
</body>
</html>